package com.industrial.common.core.constant;

/**
 * 山东统一身份认证平台API
 */
public class SdAuthenticationApi {

    /** 主机名 */
    private final static String HOST = "http://10.200.38.240:9999";

    /** 通过票据获取Token */
    public final static String GET_TOKEN_BY_TICKET = HOST + "/admin/api/token?ticket=%s";

    /** 通过Token获取用户信息 */
    public final static String GET_USERINFO_BY_TOKEN = HOST + "/admin/api/indo/user";

    /** 获取法人用户信息 */
    public final static String GET_CORUSER_BY_TOKEN = HOST + "/admin/api/gov/coruser";

    /** 查询厅内人员用户信息 */
    public final static String GET_TINGNEI_BY_TOKEN = HOST + "/admin/api/indo/user";

    public final static String GET_CORPORATION_BY_CORUSER = HOST + "/admin/api/gov/corporation?pageindex=1&pagesize=100";


    /** 山东通corpid、secrect */
    private final static String CORPID = "ww2389532372dc6805";
    private final static String SECRECT = "Sg7nCxBXJ1AKNFdgVP-bQtum_QY7sFx5EJzhef8X95s";

    /** 山东通主机名 */
    private final static String SDT_HOST = "http://59.206.205.195:9080";

    /** 山东通获取访问令牌 */
    public final static String SDT_ACCESS_TOKEN = SDT_HOST + "/cgi-bin/gettoken?corpid="+CORPID+"&corpsecret=" + SECRECT;

    /** 山东通获取用户信息 */
    public final static String SDT_GET_USER_INFO = SDT_HOST + "/cgi-bin/user/getuserinfo?access_token=%s&code=%s";

}
